package com.ihr360.mail.service;

import com.ihr360.mail.dto.MailSettingDto;

/**
 * @author
 */
public interface MailSettingService {

    MailSettingDto testConnect(String companyId, MailSettingDto sendMessageEmailSetting);

    Boolean deleteMail(String companyId, String id);

    MailSettingDto findMailDetail(String companyId);

    MailSettingDto saveMail(String companyId, MailSettingDto sendMessageEmailSetting);

    /**
     * 发送邮件
     *
     * @param companyId
     * @param emailContent
     * @return
     */
    boolean sendMail(String companyId, String emailContent, String recipient, String subject);
}
